<template>
	<view>
		<view class="u-page">
			<u-action-sheet v-model="ashow" :list="alist"></u-action-sheet>
			<view>
				<u-swiper :list="imgList" :effect3d="imgEffect3d"></u-swiper>
			</view>
			<view>
				<u-divider>分隔符</u-divider>
			</view>
		</view>
		<u-tabbar v-model="current" :show="show" :bg-color="bgColor" :border-top="borderTop" :list="list"
			:mid-button="midButton" :inactive-color="inactiveColor" :activeColor="activeColor">
		</u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				text1: '',
				current: 0,
				show: true,
				bgColor: '#f0f0f0',
				borderTop: true,
				list: [{
						iconPath: "hemo",
						text: '首页',
						count: 0,
						isDot: true,
						customTcon: false,
					},
					{
						iconPath: "pages1",
						text: '3D楼盘',
						// count: 0,
						isDot: false,
						customTcon: true,
					},
					{
						iconPath: "pages2",
						text: '更多',
						// count: 0,
						isDot: false,
						customTcon: false,
					}
				],
				midButton: false,
				inactiveColor: '#909399',
				activeColor: '#5098FF',
				//图片轮询列表
				imgList: [{
					image: '/static/uview/common/logo.png',
					title: '1'
				}, {
					image: '/static/uview/common/logo.png',
					title: '2'
				}],
				imgEffect3d: true,
				alist: [{
					text: "选择1",
					color: 'blue',
					fontSize: 30
				}, {
					text: "选择2"
				}],
				ashow: false
			}
		},
		onPullDownRefresh() {
			// console.log('刷新');
			setTimeout(function() {
				uni.stopPullDownRefresh();
			}, 1000);
		},
		onNavigationBarButtonTap(e) {
			switch (e["index"]) {
				case 0:
					// console.log("点击菜单按钮？");
					this.ashow = 'true'
					break;
				case 1:
					break;
				default:
					console.log("???");
			}
		},
		methods: {
			beforeSwitch(index) {
				console.log("?");
				return true;
			},
			change(index) {
				console.log(index);
			}
		}
	}
</script>

<style>
</style>
